<?php

namespace app\index\controller;


use support\Db;
use Webman\Config;

class IndexController
{
    /*public function index(Request $request)
    {
        static $readme;
        if (!$readme) {
            $readme = file_get_contents(base_path('README.md'));
        }
        return $readme;
    }*/

    // localhost:8787/index   对应应用目录
    public function index() {
        return "welcome";
//        return view('index/index', ['name' => 'webman']);
    }

    public function getTest()
    {
        $one = DB::table('test')->where('id',1)->first();
        return json($one);
    }



}
